import {legacy_createStore as createStore,combineReducers,applyMiddleware,compose} from 'redux';
import reduxThunk from 'redux-thunk';
import tokenReducer from './reducer/tokenReducer'
import rolesReducer from './reducer/rolesReducer'
import cateReducer from './reducer/cateReducer'
let reducer = combineReducers({
    tokenReducer,
    rolesReducer,
    cateReducer
});
let windows:any = window;
const composeEnhancers = windows.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
let store = createStore(reducer,composeEnhancers(applyMiddleware(reduxThunk)));

export default store;